package com.yang.entity;
/**
 * 学生实体类
 * @author 杨吉明
 *
 */
public class Student {
	
	private Integer id;
	private String name;
	private Integer age;
	private Integer gender;
	private String address;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	/**
	 * 重写toString方法
	 */
	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", age=" + age
				+ ", gender=" + gender + ", address=" + address
				+ ", getClass()=" + getClass() + ", toString()="
				+ super.toString() + "]";
	}
	
	/**
	 * 无参构造方法
	 */
	public Student(){
		
	}
	
	/**
	 * 有参数的构造方法
	 * @param id
	 * @param name
	 * @param age
	 * @param gender
	 * @param address
	 */
	public Student(Integer id,String name,Integer age,Integer gender,String address){
		this.id=id;
		this.name=name;
		this.age=age;
		this.gender=gender;
		this.address=address;
	}
	
}
